//
//  KeepCallBottomView.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "KeepCallBottomView.h"

#import "ExchangeRateCulVC.h"


#import "PayMoneyController.h"
@interface KeepCallBottomView ()


@end

@implementation KeepCallBottomView

- (void)awakeFromNib{
    
    [super awakeFromNib];
    
    self.topBtn.titleLabel.font = MYFONT(17);
    
    self.topBtn.layer.cornerRadius = 22;
    
    self.topBtn.layer.masksToBounds = YES;
    
    self.topBtn.backgroundColor = themeColor;
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(selfDidTap)];
    
    [self addGestureRecognizer:tap];
    
}

- (void)selfDidTap{
    
    
    [self.viewController.view endEditing:YES];
    
    if ([self.viewController isKindOfClass:[ExchangeRateCulVC class]]) {
        
        [[NSNotificationCenter defaultCenter]postNotificationName:@"StartCalculate" object:nil];

    }
    
    
    if ([self.viewController isKindOfClass:[PayMoneyController class]]) {
        
        [[NSNotificationCenter defaultCenter]postNotificationName:@"StartCalculateRmb" object:nil];
        
    }
    
    
    
}



- (IBAction)topBtnDidTap:(UIButton *)sender {
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
